package br.com.hpedroni.engine.teste;

import javax.microedition.lcdui.Graphics;

import br.com.hpedroni.engine.physics.Vector2D;

public abstract class PrimitiveObject {

	private int x;
	private int y;
	private int width;
	private int heigth;

	public PrimitiveObject(int x, int y, int width, int heigth) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.heigth = heigth;
	}

	public abstract boolean colidesWith(PrimitiveObject otherObject);

	public abstract void draw(Graphics g);

	public abstract void changePosition(Vector2D otherVector);

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getWidth() {
		return width;
	}

	public int getHeigth() {
		return heigth;
	}

}
